package tq.com.tqteacher.mine.activity;

import tq.com.tqcom.base.BaseFragment;
import tq.com.tqcom.base.BaseTitleActivity;
import tq.com.tqteacher.mine.fragment.TQBindPhoneFragment;
import tq.com.tqteacher.mine.fragment.TQModifyPwdFragment;

public class TQModifyPhonePwdInfoActivity extends BaseTitleActivity {

    @Override
    protected BaseFragment fragment() {
        int key = getIntent().getIntExtra("index", 0);
        switch (key){
            case 0:{
                setHeaderTitle("手机号登录");
                return new TQBindPhoneFragment();
            }
            case 1:{
                setHeaderTitle("修改密码");
                return new TQModifyPwdFragment();
            }
        }
        return super.fragment();
    }
}
